﻿using BGYXControlLibrary.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interop;
using static BGYXControlLibrary.Common.WindowUtil;

namespace BGYXControlLibrary.Command
{
    public class WindowBottomRightDragCommand : ICommand
    {

        public event EventHandler CanExecuteChanged;

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public void Execute(object parameter)
        {
            WindowUtil.WinowSendMessageButtonDown((Window)parameter, (int)HitTest.HTBOTTOMRIGHT);
        }
    }
}
